import request from '../utils/request';

export const sysMessagePage = query => {
    return request({
        url: '/sysMessage/page',
        method: 'get',
        params: query
    });
};

export const sysMessageCountNum = query => {
    return request({
        url: '/sysMessage/countNum',
        method: 'get',
        params: query
    });
};

export const saveSysMessage = data => {
    return request({
        url: '/sysMessage/save',
        method: 'post',
        data: data
    });
};

export const updateSysMessageStatus = data => {
    return request({
        url: '/sysMessage/updateStatus',
        method: 'put',
        data: data
    });
};

export const updateSysMessageStatusByUser = data => {
    return request({
        url: '/sysMessage/updateStatusByUser',
        method: 'put',
        data: data
    });
};